home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2000 February
/
PCWorld_2000-02_cd.bin
/
Software
/
Vyzkuste
/
xsetup
/
_SETUP.2
/
Group3
/
XQ Control Panel Hide Net.xpl
< prev
next >
Wrap
Text File
|
1999-09-03
|
2KB
|
67 lines
"FILE"="Xteq Systems X-Setup Plugin 5.0"
"TYPE"="6"
"COUNT"="3"
"UIPATH"="Appearance\Control Panel\Other Settings"
"NAME"="Visible pages in "Network""
"LANGUAGE"="VBScript"
"VERSION"="1.01"
"TEXT 1"="Show "File Sharing" page in Network control"
"TEXT 2"="Show "Identification" page in Network control"
"TEXT 3"="Show "Access Control" page in Network control"
"DESCRIPTION 1"="To show a page inside the "Network" control, activate it. To hide it, deactivate it."
"DESCRIPTION 2"="Please note: These settings are for Windows 95 and Windows 98 only."
"AUTHOR"="Xteq Systems"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
"COMMENT 2"="Thanks to CptSiskoX for the settings!"
'All DWORD. 1 = don't show, anything else =show
sV1="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Network\NoFileSharingControl"
sV2="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Network\NoNetSetupIDPage"
sV3="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Network\NoNetSetupSecurityPage"
Sub Plugin_Initialize
if GetWinVer=1 or GetWinVer=3 then
i=RegReadValue(sV1)
if i<>1 then SetUIElement 1,true
i=RegReadValue(sV2)
if i<>1 then SetUIElement 2,true
i=RegReadValue(sV3)
if i<>1 then SetUIElement 3,true
else
Call Disable()
end if
End Sub
Sub Plugin_CheckData(ElementIndex)
End Sub
Sub Plugin_Apply(ElementIndex,ElementSubIndex)
Call WriteIt(1,sV1)
Call WriteIt(2,sV2)
Call WriteIt(3,sV3)
End Sub
Sub WriteIt(ITM,VAL)
b=GetUIElement(ITM)
if b=false then
call RegWriteValue(VAL,1,2)
else
chk=RegReadValue(VAL)
if IsEmpty(chk)=false then
Call RegDeleteValue(VAL)
end if
end if
end sub
Sub Plugin_Terminate
End Sub